package io.github.wslxm.springbootplus2.manage.sys.model.query;

import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;
import org.hibernate.validator.constraints.Length;

import io.github.wslxm.springbootplus2.core.base.model.BaseQuery;

/**
 * 编号生成表 Query
 *
 * <p>
 * ::本代码由[兮家小二]提供的代码生成器生成,如有问题,请手动修改 ::作者CSDN:https://blog.csdn.net/qq_41463655
 * </p>
 * @author ws
 * @email 1720696548@qq.com
 * @date 2023-12-06 11:08:13
 */
@Data
@ToString(callSuper = true)
@Schema(name = "SysNumberQuery 对象", description = "编号生成表")
public class SysNumberQuery extends BaseQuery {

    private static final long serialVersionUID = -1732235472661110784L;

    @Schema(title = "层级 ")
    @Range(min = 0L, max = 999L, message = "sys.number.hierarchy.Range")
    private Integer hierarchy;

    @Schema(title = "父级 ")
    @Length(min = 0, max = 32, message = "sys.number.pid.Length")
    private String pid;

    @Schema(title = "标题")
    @Length(min = 0, max = 32, message = "sys.number.name.Length")
    private String name;

    @Schema(title = "code")
    @Length(min = 0, max = 32, message = "sys.number.code.Length")
    private String code;

}

